/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author c0909h1169
 */

class Thread1 extends Thread
{
    public void run()
    {
        int i;
        int j;
        int k;
        for(i =1;i<=5;i++)
        {
             for(j=1; j<=5-i; j++)
            {
                System.out.print(" ");

            }

            //int max = 2*i-1;

            for(j=1; j<=2*i-1; j++)
            {
                System.out.print("*");
                
            }
             System.out.println();
             try
                {
                    Thread.sleep(100);
                }
                catch(InterruptedException ex)
                {

                }
	

        }
    }
}
class Thread2 extends Thread
{
    public void run()
    {
        for(int i=1;i<=5;i++)
        {
            System.out.println(i*i);
            try
                {
                    Thread.sleep(1100);
                }
                catch(InterruptedException ex)
                {

                }
        }
    }
}
public class Homework1 {
    public static void main(String args[])
    {
        Thread1 t1 = new Thread1();
        Thread2 t2 = new Thread2();
        t1.start();
        t2.start();
    }

}
